One-hot encoding

Representing categorical data as a vector in which:1

  • One element is set to 1.
  • All other elements are set to 0.

One-hot encoding is commonly used to represent strings or identifiers that have a finite set of possible values..1

Footnotes

  1. developers.google.com/machine-learning/glossary#one-hot_encoding 2

2024 © ak